function isSameValue(input_id_1, input_id_2)
{
    if($('#' + input_id_1).val() == $('#' + input_id_2).val())
        return true;
    else
        return false;
}

function isEmpty(input_id)
{
    if($.trim($('#' + input_id).val()) == "")
        return true;
    else
        return false;
}

function isSignCountInRange(input_id, count_min, count_max)
{
    input_str = $.trim($('#' + input_id).val());
    if(count_min == undefined && count_max == undefined)
        return false;
    
    if(count_min == undefined)
        if(input_str.length <= count_max)
            return true;
    
    if(count_max == undefined)
        if(input_str.length >= count_min)
            return true;
    
    if(input_str.length >= count_min && input_str.length <= count_max)
        return true;
    
    return false;
}

function isValidEmail(input_id)
{
    var email = $('#' + input_id).val();
    var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
    return re.test(email);
}